package com.ruoyi.driver.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 司机对象 tb_driver
 * 
 * @author wuxiao
 * @date 2024-08-19
 */
public class TbDriver extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 司机ID */
    private Long driverId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String idcardNo;
    @Excel(name = "联系方式")
    private String mobile;

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /** 身份证地址 */
    @Excel(name = "身份证地址")
    private String idcardAddress;

    /** 身份证有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "身份证有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date idcardValidity;

    /** 身份证正面 */
    @Excel(name = "身份证正面")
    private String idcardFrontUrl;

    /** 身份证背面 */
    @Excel(name = "身份证背面")
    private String idcardBackUrl;

    /** 驾驶证照片 */
    @Excel(name = "驾驶证照片")
    private String driverLicenseFrontUrl;

    /** 行驶证照片 */
    @Excel(name = "行驶证照片")
    private String driverLicenseBackUrl;

    /** 评分 */
    @Excel(name = "评分")
    private BigDecimal score;

    /** 订单总量 */
    @Excel(name = "订单总量")
    private Long orderCount;

    /** 认证状态 */
    @Excel(name = "认证状态")
    private Long authStatus;

    /** 人脸照片 */
    @Excel(name = "人脸照片")
    private String facePhoto;

    public void setDriverId(Long driverId) 
    {
        this.driverId = driverId;
    }

    public Long getDriverId() 
    {
        return driverId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGender(String gender)
    {
        this.gender = gender;
    }

    public String getGender()
    {
        return gender;
    }
    public void setIdcardNo(String idcardNo)
    {
        this.idcardNo = idcardNo;
    }

    public String getIdcardNo()
    {
        return idcardNo;
    }
    public void setIdcardAddress(String idcardAddress)
    {
        this.idcardAddress = idcardAddress;
    }

    public String getIdcardAddress()
    {
        return idcardAddress;
    }
    public void setIdcardValidity(Date idcardValidity)
    {
        this.idcardValidity = idcardValidity;
    }

    public Date getIdcardValidity()
    {
        return idcardValidity;
    }
    public void setIdcardFrontUrl(String idcardFrontUrl) 
    {
        this.idcardFrontUrl = idcardFrontUrl;
    }

    public String getIdcardFrontUrl() 
    {
        return idcardFrontUrl;
    }
    public void setIdcardBackUrl(String idcardBackUrl) 
    {
        this.idcardBackUrl = idcardBackUrl;
    }

    public String getIdcardBackUrl() 
    {
        return idcardBackUrl;
    }
    public void setDriverLicenseFrontUrl(String driverLicenseFrontUrl) 
    {
        this.driverLicenseFrontUrl = driverLicenseFrontUrl;
    }

    public String getDriverLicenseFrontUrl() 
    {
        return driverLicenseFrontUrl;
    }
    public void setDriverLicenseBackUrl(String driverLicenseBackUrl) 
    {
        this.driverLicenseBackUrl = driverLicenseBackUrl;
    }

    public String getDriverLicenseBackUrl() 
    {
        return driverLicenseBackUrl;
    }
    public void setScore(BigDecimal score) 
    {
        this.score = score;
    }

    public BigDecimal getScore() 
    {
        return score;
    }
    public void setOrderCount(Long orderCount) 
    {
        this.orderCount = orderCount;
    }

    public Long getOrderCount() 
    {
        return orderCount;
    }
    public void setAuthStatus(Long authStatus) 
    {
        this.authStatus = authStatus;
    }

    public Long getAuthStatus() 
    {
        return authStatus;
    }
    public void setFacePhoto(String facePhoto) 
    {
        this.facePhoto = facePhoto;
    }

    public String getFacePhoto() 
    {
        return facePhoto;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("driverId", getDriverId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("gender", getGender())
            .append("idcardNo", getIdcardNo())
            .append("idcardAddress", getIdcardAddress())
            .append("idcardValidity", getIdcardValidity())
            .append("idcardFrontUrl", getIdcardFrontUrl())
            .append("idcardBackUrl", getIdcardBackUrl())
            .append("driverLicenseFrontUrl", getDriverLicenseFrontUrl())
            .append("driverLicenseBackUrl", getDriverLicenseBackUrl())
            .append("score", getScore())
            .append("orderCount", getOrderCount())
            .append("authStatus", getAuthStatus())
            .append("facePhoto", getFacePhoto())
            .append("mobile", getMobile())
            .toString();
    }
}
